<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>atestcasefordoxy: cubE/cubEPrimitive.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">atestcasefordoxy
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">cubE/cubEPrimitive.h</div>  </div>
</div>
<div class="contents">
<a href="cub_e_primitive_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef CUBE_PRIMITIVE_H</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define CUBE_PRIMITIVE_H</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="keyword">namespace </span>CubE
<a name="l00005"></a>00005 {
<a name="l00006"></a>00006    <span class="keyword">class </span>Quaternion;
<a name="l00007"></a>00007       
<a name="l00008"></a>00008    <span class="keyword">class </span>Vector3
<a name="l00009"></a>00009    {
<a name="l00010"></a>00010    <span class="keyword">public</span>:
<a name="l00011"></a>00011 
<a name="l00012"></a><a class="code" href="class_cub_e_1_1_vector3.html#ac5339c3f70824fe87d4e5a35b7c14bbf">00012</a>       <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="class_cub_e_1_1_vector3.html">Vector3</a> <a class="code" href="class_cub_e_1_1_vector3.html#ac5339c3f70824fe87d4e5a35b7c14bbf">UNIT_X</a>;
<a name="l00013"></a><a class="code" href="class_cub_e_1_1_vector3.html#ab08b4cff68b67cc0af66f741cef11dd7">00013</a>       <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="class_cub_e_1_1_vector3.html">Vector3</a> <a class="code" href="class_cub_e_1_1_vector3.html#ab08b4cff68b67cc0af66f741cef11dd7">UNIT_Y</a>;
<a name="l00014"></a><a class="code" href="class_cub_e_1_1_vector3.html#a30dbbdd363f434726a0e851c8d401500">00014</a>       <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="class_cub_e_1_1_vector3.html">Vector3</a> <a class="code" href="class_cub_e_1_1_vector3.html#a30dbbdd363f434726a0e851c8d401500">UNIT_Z</a>;
<a name="l00015"></a><a class="code" href="class_cub_e_1_1_vector3.html#a026fea5653d1a6fc380e5bc94062527c">00015</a>       <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="class_cub_e_1_1_vector3.html">Vector3</a> <a class="code" href="class_cub_e_1_1_vector3.html#a026fea5653d1a6fc380e5bc94062527c">ZERO</a>;
<a name="l00016"></a>00016 
<a name="l00017"></a>00017       <a class="code" href="class_cub_e_1_1_vector3.html#abed692888b329676c9fbe04e4a427582">Vector3</a>(<span class="keywordtype">void</span>);
<a name="l00018"></a>00018       <a class="code" href="class_cub_e_1_1_vector3.html#abed692888b329676c9fbe04e4a427582">Vector3</a>(<a class="code" href="class_cub_e_1_1_vector3.html">Vector3</a> <span class="keyword">const</span>&amp; other);
<a name="l00019"></a>00019       <a class="code" href="class_cub_e_1_1_vector3.html#abed692888b329676c9fbe04e4a427582">Vector3</a>(<a class="code" href="class_cub_e_1_1_vector3.html">Vector3</a>&amp; other);
<a name="l00020"></a>00020       <a class="code" href="class_cub_e_1_1_vector3.html#abed692888b329676c9fbe04e4a427582">Vector3</a>(<span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y, <span class="keywordtype">float</span> z);
<a name="l00021"></a>00021       <a class="code" href="class_cub_e_1_1_vector3.html">Vector3</a>&amp; <a class="code" href="class_cub_e_1_1_vector3.html#aa01efd1eccaf43c961abba5f1b41df68">operator=</a>(<span class="keyword">const</span> <a class="code" href="class_cub_e_1_1_vector3.html">Vector3</a>&amp; vec);
<a name="l00022"></a>00022       <a class="code" href="class_cub_e_1_1_vector3.html">Vector3</a> <a class="code" href="class_cub_e_1_1_vector3.html#afa092e7f6af998204eae8a3aa9c055e0">operator+</a>(<span class="keyword">const</span> <a class="code" href="class_cub_e_1_1_vector3.html">Vector3</a>&amp; vec) <span class="keyword">const</span> ;
<a name="l00023"></a>00023       <a class="code" href="class_cub_e_1_1_vector3.html">Vector3</a> <a class="code" href="class_cub_e_1_1_vector3.html#a8e5a0cd05231af62e834059f4d2ce1a3">operator-</a>(<span class="keyword">const</span> <a class="code" href="class_cub_e_1_1_vector3.html">Vector3</a>&amp; vec) <span class="keyword">const</span> ;      
<a name="l00024"></a>00024       <a class="code" href="class_cub_e_1_1_vector3.html">Vector3</a> <a class="code" href="class_cub_e_1_1_vector3.html#a3d019beaaf5c3f556b8ec085930f7e30">operator*</a>(<span class="keywordtype">float</span> factor) <span class="keyword">const</span>;
<a name="l00025"></a>00025       <span class="keywordtype">bool</span> <a class="code" href="class_cub_e_1_1_vector3.html#a6a113e26010ad18377853ad3834bd2d1">operator==</a>(<span class="keyword">const</span> <a class="code" href="class_cub_e_1_1_vector3.html">Vector3</a>&amp; vec) <span class="keyword">const</span> ;
<a name="l00026"></a>00026       <span class="keywordtype">bool</span> <a class="code" href="class_cub_e_1_1_vector3.html#aadcab326631e3e94ea655fb98661c104">operator!=</a>(<span class="keyword">const</span> <a class="code" href="class_cub_e_1_1_vector3.html">Vector3</a>&amp; vec) <span class="keyword">const</span> ;
<a name="l00027"></a>00027       
<a name="l00028"></a>00028       <span class="comment">//access</span>
<a name="l00029"></a>00029       <span class="keywordtype">float</span> <a class="code" href="class_cub_e_1_1_vector3.html#a0881366bf03ec208cf888eb6e79892b6">operator[]</a>(<span class="keywordtype">int</span> i) <span class="keyword">const</span>; 
<a name="l00030"></a>00030       <span class="keywordtype">bool</span> <a class="code" href="class_cub_e_1_1_vector3.html#ae4dc326ed37f380c7c90d340664cbc12">Set</a>(<span class="keywordtype">int</span> i, <span class="keywordtype">float</span> val);
<a name="l00031"></a>00031       <span class="keywordtype">void</span> <a class="code" href="class_cub_e_1_1_vector3.html#ae4dc326ed37f380c7c90d340664cbc12">Set</a>(<span class="keywordtype">float</span> val[3]);
<a name="l00032"></a>00032       <span class="keywordtype">void</span> <a class="code" href="class_cub_e_1_1_vector3.html#ae4dc326ed37f380c7c90d340664cbc12">Set</a>(<span class="keywordtype">float</span> xval, <span class="keywordtype">float</span> yval, <span class="keywordtype">float</span> zval);
<a name="l00033"></a>00033       <span class="keywordtype">float</span> <a class="code" href="class_cub_e_1_1_vector3.html#a9a103621b6db54038af088710032908c">Get</a>(<span class="keywordtype">int</span> i);
<a name="l00034"></a>00034       <span class="keywordtype">void</span> <a class="code" href="class_cub_e_1_1_vector3.html#a9a103621b6db54038af088710032908c">Get</a>(<span class="keywordtype">float</span> val[3]);
<a name="l00035"></a>00035       <span class="keywordtype">void</span> <a class="code" href="class_cub_e_1_1_vector3.html#a9a103621b6db54038af088710032908c">Get</a>(<span class="keywordtype">float</span>&amp; xval, <span class="keywordtype">float</span>&amp; yval, <span class="keywordtype">float</span>&amp; zval);
<a name="l00036"></a><a class="code" href="class_cub_e_1_1_vector3.html#a06b78e8730d2b270bd508d6f975820b6">00036</a>       <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="class_cub_e_1_1_vector3.html#a06b78e8730d2b270bd508d6f975820b6">Component_s</a>{
<a name="l00037"></a><a class="code" href="class_cub_e_1_1_vector3.html#a06b78e8730d2b270bd508d6f975820b6a562bd263b47e09b22670ddce751a9149">00037</a>          <a class="code" href="class_cub_e_1_1_vector3.html#a06b78e8730d2b270bd508d6f975820b6ad15966879716376a8a46373d8808efdc">_X</a>, <a class="code" href="class_cub_e_1_1_vector3.html#a06b78e8730d2b270bd508d6f975820b6a7a9b1684207cded9368cec574a1580a6">_Y</a>, <a class="code" href="class_cub_e_1_1_vector3.html#a06b78e8730d2b270bd508d6f975820b6a562bd263b47e09b22670ddce751a9149">_Z</a>
<a name="l00038"></a>00038       }<a class="code" href="class_cub_e_1_1_vector3.html#ae264c6aecd3921a0d0e5f0ff0e8fbd85">Component</a>;
<a name="l00039"></a>00039       <span class="keywordtype">float</span> <a class="code" href="class_cub_e_1_1_vector3.html#a9a103621b6db54038af088710032908c">Get</a>(<a class="code" href="class_cub_e_1_1_vector3.html#ae264c6aecd3921a0d0e5f0ff0e8fbd85">Component</a> compo);
<a name="l00040"></a>00040       
<a name="l00041"></a>00041       <span class="comment">//mathmatic attributes</span>
<a name="l00042"></a>00042       <span class="keywordtype">float</span> <a class="code" href="class_cub_e_1_1_vector3.html#aa268991783a286f7d57ee0ee8ca2cf9b">Normalize</a>(<span class="keywordtype">void</span>);
<a name="l00043"></a>00043       <span class="keywordtype">bool</span> <a class="code" href="class_cub_e_1_1_vector3.html#a51cd5fba4f563f231c7b5990c058807c">IsNormalized</a>(<span class="keywordtype">void</span>);
<a name="l00044"></a>00044       <span class="keywordtype">float</span> <a class="code" href="class_cub_e_1_1_vector3.html#aacc98d0d27fe36618e5390c3d62539bc">GetLength</a>(<span class="keywordtype">void</span>);
<a name="l00045"></a>00045       <a class="code" href="class_cub_e_1_1_vector3.html">Vector3</a> <a class="code" href="class_cub_e_1_1_vector3.html#a50f55be1b227b0c03f6d6204051f5e59">CrossProduct</a>(<span class="keyword">const</span> <a class="code" href="class_cub_e_1_1_vector3.html">Vector3</a>&amp; other) <span class="keyword">const</span>;
<a name="l00046"></a>00046       <span class="keywordtype">float</span> <a class="code" href="class_cub_e_1_1_vector3.html#a8631aad50aea0486324912b480fce594">DotProduct</a>(<span class="keyword">const</span> <a class="code" href="class_cub_e_1_1_vector3.html">Vector3</a>&amp; other) <span class="keyword">const</span>;
<a name="l00047"></a>00047 
<a name="l00048"></a>00048       <span class="comment">//advanced features</span>
<a name="l00049"></a>00049       <a class="code" href="class_cub_e_1_1_vector3.html">Vector3</a> <a class="code" href="class_cub_e_1_1_vector3.html#a0b69d68acfb5c0c29b311ea07b69ef66">Rotate</a>(<span class="keyword">const</span> <a class="code" href="class_cub_e_1_1_quaternion.html">Quaternion</a>&amp; q) <span class="keyword">const</span>;
<a name="l00050"></a>00050    
<a name="l00051"></a>00051    <span class="keyword">private</span>:
<a name="l00052"></a>00052       <span class="keywordtype">float</span> _x, _y, _z;
<a name="l00053"></a>00053    };
<a name="l00054"></a>00054 
<a name="l00055"></a>00055 }
<a name="l00056"></a>00056 
<a name="l00057"></a>00057 
<a name="l00058"></a>00058 <span class="preprocessor">#endif//  CUBE_PRIMITIVE_H</span>
</pre></div></div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Sun Feb 5 2012 00:51:24 for atestcasefordoxy by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5
</small></address>

</body>
</html>
